<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="pojo.*,service.*,java.util.*,java.text.*"%>

<%
		request.setCharacterEncoding("utf-8");

		String sex = request.getParameter("sex").trim();
		int s=Integer.parseInt(sex);
		String realname = request.getParameter("realname").trim();
		int type=Integer.parseInt(request.getParameter("type"));
		String IDcard =request.getParameter("IDcard").trim();
		
		String tel=request.getParameter("tel").trim();
		String email=request.getParameter("email").trim();
		String birthday=request.getParameter("birthday").trim();
		String job=request.getParameter("job").trim();
		int p=Integer.parseInt(request.getParameter("permit").trim());
		int i=Integer.parseInt(request.getParameter("id").trim());
	
		
	
		
		MemberService dms = new MemberService(); 
		
	    dms.getUpdateByid(s,realname,IDcard,tel,email,birthday,job,p,i);
	    out.print("修改成功");
	    if(type==1)
	    {
	    response.sendRedirect("../reviewlist.jsp");
	    
	    }		
		else response.sendRedirect("../meberlist.jsp");

		 
%>
<head>


</head>
<body></body>
